import { TableColumnData } from "@arco-design/web-vue";

export const columns: Array<TableColumnData> = [
  {
    title: "index",
    dataIndex: "index",
    slotName: "index",
    width: 50
  },
  {
    title: "id",
    dataIndex: "templateId",
    slotName: "templateId"
  },
  {
    title: "模板名称",
    dataIndex: "templateName"
  },
  {
    title: "预览图",
    dataIndex: "imgSrc",
    slotName: "imgSrc"
  },
  {
    title: "店名",
    dataIndex: "storeName"
  },
  {
    title: "主/副",
    dataIndex: "major",
    slotName: "major"
  },
  {
    title: "是否共享",
    dataIndex: "share"
  },
  // {
  //   title: "缩放",
  //   dataIndex: "scale",
  // },
  {
    title: "价签尺寸",
    dataIndex: "resolutionDesc",
    filterable: {
      filters: [],
      filter: (value: any, record: any) => {
        return record.resolutionDesc === value;
      },
      multiple: false,
      triggerProps: {
        showArrow: true
      }
    },
    width: 120
  },
  // {
  //   title: "宽",
  //   dataIndex: "resolutionWidth",
  // },
  // {
  //   title: "高",
  //   dataIndex: "resolutionHeight",
  // },
  // {
  //   title: "模板ID",
  //   dataIndex: "templateId",
  // },
  {
    title: "操作",
    dataIndex: "optional",
    width: 280
  }
];
